<include file="Common:header" />
<div class="table_content">
    <form action="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME)}" method="post" class="ajax_form">
        <table class="edit_table">
            <tr>
                <td class="tablehead">角色名称</td>
                <td><input type="text" name="name" class="text w150 required" value="{$roleInfo['name']}"/><label class="tips">例：超级管理员</label></td>
            </tr>
            <tr>
                <td class="tablehead">备注</td>
                <td><input type="text" name="remark" class="text w150" value="{$roleInfo['remark']}"/><label class="tips">例：超级管理员</label></td>
            </tr>
            <tr>
                <td class="tablehead">状态</td>
                <td>
                    <span class="radio">
                        <input type="radio" id="radio1" name="status" value="1" <if condition="is_null($roleInfo['status']) or ($roleInfo['status'] eq 1)">checked</if> /><label for="radio1">开启</label>
                        <input type="radio" id="radio2" name="status" value="0" <if condition="!is_null($roleInfo['status']) and ($roleInfo['status'] eq 0)">checked</if> /><label for="radio2">关闭</label>
                    </span>
                </td>
            </tr>
            <tr>
                <td class="tablehead">
                    <input type="hidden" name="id" value="{$roleInfo['id']}"/>
                    <input type="hidden" name="type" value="{$_GET['type']}"/>
                </td>
                <td>
                    <input type="button" class="save_btn" value="保存"/>
                    <input type="button" class="back_btn" value="返回"/>
                </td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript">
    $(function() {
        $('input.save_btn').click(function() {
            $(this).tyAjax({
                callBack: function(data) {
                    callBackTips(data.status, data.info, data.url);
                }
            });
        });
    });
</script>
<include file="Common:footer" />
